const mongoose = require('./connection')

const orderSchema = new mongoose.Schema({
    //订单号
    orderno:String,
    time:Date,
    //吃的方式
    mode:String,
    totalprice:String,
    //订单状态
    status:String,
    userid:String,
    menuname:String,
    code:String

})

const orderModel = mongoose.model('order',orderSchema)

module.exports = orderModel
